const routeList = [
	{
		path: '/',
		name: 'index',
		component: () => import('@/layout/default.vue'),
		children: [
			{
				path: '/about',
				name: 'About',
				// route level code-splitting
				// this generates a separate chunk (about.[hash].js) for this route
				// which is lazy-loaded when the route is visited.
				component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue'),
			},
			{
				path: '/test',
				name: 'Test',
				// route level code-splitting
				// this generates a separate chunk (about.[hash].js) for this route
				// which is lazy-loaded when the route is visited.
				component: () => import(/* webpackChunkName: "about" */ '@/views/Test.vue'),
			},
			{
				path: '/components',
				name: 'Components',
				component: () => import('@/views/Components.vue'),
			},
			{
				path: '/Dlg',
				name: 'Dlg',
				component: () => import('@/views/Dlg.vue'),
			},
			{
				path: '/Setup',
				name: 'Setup',
				component: () => import('@/views/Setup.vue'),
			},
		],
	},
	{
		path: '/login',
		name: 'login',
		component: () => import('@/views/Login.vue'),
	},
	{
		path: '/test2',
		name: 'test2',
		//布局
		component: () => import('@/layout/test2.vue'),
		children: [
			{
				//当子路由的路径为空,则为自动进入的首页
				path: '/test2/',
				component: () => import('@/views/test2/foo.vue'),
			},
			{

				path: '/test2/bar',
				component: () => import('@/views/test2/bar.vue'),
			},
		],
	},
	{
		path:'/grid',
		name:'grid',
		component:()=>import('@/layout/grid.vue'),
		children: [
			{
				//当子路由的路径为空,则为自动进入的首页
				path: '/grid/',
				component: () => import('@/views/grid/index.vue'),
			},
		]
	}

]
export default routeList
